package com.zkthink.clh.order.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体类
 * 功能价格设置表
 * </p>
 *
 * @author chenke
 * @since 2022-04-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ConfigSaveDTO", description = "功能价格设置表")
public class ChlConfigSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 功能（vip,消费金，购买店铺）
     */
    @ApiModelProperty(value = "功能（vip,消费金，购买店铺）")
    @Length(max = 255, message = "功能（vip,消费金，购买店铺）长度不能超过255")
    private String function;
    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
    /**
     * 1=vip 2=消费金 3店铺
     */
    @ApiModelProperty(value = "1=vip 2=消费金 3店铺")
    @Length(max = 255, message = "1=vip 2=消费金 3店铺长度不能超过255")
    private Integer functionType;
    /**
     * 说明
     */
    @ApiModelProperty(value = "说明")
    @Length(max = 500, message = "说明长度不能超过500")
    private String explain;

}
